Release 10.1A: OpenEdge Development:
Progress 4GL Reference
DELETE WIDGET-POOL statement
Deletes a defined widget pool.
Note: Does not apply to SpeedScript programming.Syntax
pool-nameThe name of a defined dynamic widget pool. If you omit
pool-name, the statement deletes the unnamed pool most recently created in the current or a calling procedure.NO-ERRORSuppresses error messages if the specified widget pool does not exist. You can then test for the ERROR condition to verify that the widget pool does not exist.
ExampleThe following example creates a named widget pool and lets you add buttons to it. When you choose Delete Buttons, the widget pool is deleted. (Therefore all the buttons in the pool are also deleted.) Similarly, when you choose Quit to exit the procedure the widget pool is also deleted. Because the pool is persistent, it remains allocated for the rest of your session if you do not delete it.
Notes
- When you delete a widget pool, all widgets in that pool are automatically deleted.
- If you do not delete a non-persistent widget pool, it is deleted when the procedure that created it ends. If you do not delete a persistent widget pool, it is deleted when the session ends.
- All named widget pools are globally scoped. While a named widget pool is allocated, any procedure within the same process can access that widget pool. If you try to delete a named widget pool that does not exist, Progress raises the ERROR condition.
See also
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |